# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=picard
pkgver=2.3.2
pkgrel=0
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://picard.musicbrainz.org/"
pkgdesc="Official MusicBrainz tagger"
license="GPL-2.0-or-later"
depends="py3-mutagen chromaprint py3-qt5"
makedepends="py3-setuptools python3-dev gettext"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/metabrainz/picard/archive/release-$pkgver.tar.gz"
builddir="$srcdir/picard-release-$pkgver"

build() {
	python3 setup.py config
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install \
		--root="$pkgdir" \
		--disable-autoupdate
}

sha512sums="5c3032119b0b570e76f0ecffa080d0168754c93adf0fd5568d4433b111718d3efdfeb1997030139c57f54afba42ac56f81b86e99efa7f93b7b7fae12f54e8317  picard-2.3.2.tar.gz"
